/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.


See LICENSE and AUTHORS for more information.
*/
#include "status.h"

Status::Status(QString text)
    : m_text(text),m_type(Error),m_code(Offline)
{
}

Status::Status(QString text, int priority)
    : m_text(text),m_priority(priority),m_type(Error),m_code(Offline)
{
}

Status::Status(QString text, int priority, Status::Code code)
    : m_text(text),m_priority(priority),m_type(Error),m_code(code)
{
}

Status::Status(QString text, int priority, Status::Code code, Status::Type type)
        : m_text(text),m_priority(priority),m_type(type),m_code(code)
{
}

QString Status::text()
{
    return m_text;
}

int Status::priority()
{
    return m_priority;
}

Status::Type Status::type()
{
    return m_type;
}

Status::Code Status::code()
{
    return m_code;
}

void Status::setText(QString text)
{
    m_text = text;
}

void Status::setPriority(int priority)
{
    m_priority = priority;
}

void Status::setType(Status::Type type)
{
    m_type = type;
}

void Status::setCode(Status::Code code)
{
    m_code = code;
}
